package org.csu.onlineedubackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("video_student_course_progress")
public class VideoStudentCourseProgress {
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    @TableField("student_id")
    private Integer studentId;
    
    @TableField("lesson_id")
    private Integer lessonId;
    
    @TableField(value = "`current_time`")
    private Integer currentTime;
    
    @TableField("is_completed")
    private Boolean isCompleted;
    
    @TableField("last_watched")
    private LocalDateTime lastWatched;
    
    @TableField("playback_rate")
    private Float playbackRate;
    
    @TableField("quality_setting")
    private String qualitySetting;
    
    @TableField("subtitle_enabled")
    private Boolean subtitleEnabled;
    
    @TableField("volume")
    private Float volume;
    
    @TableField("danmaku_enabled")
    private Boolean danmakuEnabled;
    
    @TableField("pip_enabled")
    private Boolean pipEnabled;
} 